<template>
    <van-search
    v-model="value"
    shape="round"
    background="#4fc08d"
    placeholder="请输入搜索关键词"
    show-action
    @focus="getFocus"
    >
  <template #left>
    <div @click="getCity" class="left">西安</div>
  </template>
  <template #action>
    <div @click="onSearch">搜索</div>
  </template>
  </van-search>
</template>

<script>
export default {
  name: "Search",
  data() {
    return {
      value:""
    }
  },
  methods: {
    getCity() {

    },
    onSearch() {

    },
    getFocus() {
      this.$router.push("/Search")
    }
  }
};
</script>

<style scoped>
/* @import url(../assets/font_3533054_zv2h74i7m7/iconfont.css); */
.search-box {
  width: 100%;
  height: 5rem;
  background-color: #fc555e;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
} 
 .left {
    margin-right: .625rem;
}
 div {
    color: white;
    font-size: 1rem;
    font-weight: 400;
}
</style>